package com.hksj.cbm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.cbm.entity.DeviceInstance;
import com.hksj.cbm.entity.DeviceModel;
import com.hksj.cbm.entity.SpaceModel;
import com.hksj.cbm.query.DeviceModelQuery;
import com.hksj.cbm.vo.DeviceModelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zengke
 * @version 1.0
 * @see DeviceModelMapper
 * @since 2024/7/11 14:56
 */
@Mapper
public interface DeviceModelMapper extends BaseMapper<DeviceModel> {
    List<DeviceModelVO> queryDeviceListByPaging(Page<DeviceModelVO> page, @Param("deviceModelQuery") DeviceModelQuery deviceModelQuery);

    List<DeviceInstance> queryConnectedDeviceInstanceList(@Param("deviceModelId") Long deviceModelId);
}
